{# src/Abzu/ArticlesBundle/Resources/views/Articles/index.html.twig #}
{% extends 'AbzuArticlesBundle::base.html.twig' %}

{% block body %}
  {% for article in articles %}
    <div class="mo-container sdPageBox mo-rounded-box az-article">
        <div class="mo-box mo-rounded-box">
            <div class="mo-box-header">
                <h2>
                    <a href="{{ path('AbzuArticlesBundle_articles_show', { 'id': article.id, 'slug': article.slug }) }}">
                    {{ article.title }}
                    </a>
                </h2><span>
                    <div class="date"><time datetime="{{ article.created|date('c') }}">{{ article.created|date('l, F j, Y') }}</time></div>

                </span>
            </div>

            <div class="mo-box-content">

                <div class="snippet">
                    <p>{{ article.body }}</p>
                    <p class="continue">
                        <a href="{{ path('AbzuArticlesBundle_articles_show', { 'id': article.id, 'slug': article.slug }) }}">
                        More...
                    </a>
                    </p>
                </div>
                <div>
                <div style="clear: both"></div>
                </div>
            </div>
            <div class="mo-box-footer">
                <div>Posted at {{ article.created|date('h:iA') }}</div>
                
            </div>
        </div>
    </div>
    {% else %}
        <p>There are no articles yet</p>
    {% endfor %}
{% endblock %}

